package com.foreveross.proxyip.core.pools.validate;

import org.apache.http.params.HttpParams;

import com.foreveross.proxyip.core.http.ProxyIpHttpClientRequest;
import com.foreveross.proxyip.entity.ProxyIpBean;
/**
 * 渠道验证定制抽象类，定制验证类必须实现
 * @author lyq
 *
 */
public abstract class AbsHandtailorValidate extends ProxyIpHttpClientRequest  {

/**
 * 测试代理ip连接
 * @param proxyIp
 * @param httpParams
 * @return
 * @throws Exception
 */
	public abstract boolean proxyConnect(ProxyIpBean proxyIp,HttpParams httpParams) throws Exception;
	/**
	 * 获取设置代理ip参数
	 * @return
	 */
	public abstract HttpParams getHttpParams();
	
	public boolean proxyConnect(ProxyIpBean proxyIp,String url,HttpParams httpParams) throws Exception{
		
		return this.proxyConnect(proxyIp, httpParams);
	}
}
